const _import = require("./_import_" + process.env.ROUT_MODE);
let orderCenter=        {
    path: "order-center",
    name: "订单中心",
    component: {
        render (c) {
            return c("router-view");
        }
    },
    children: [{
        path: "stock-management",
        name: "库存管理",
        redirect: "/order-center/stock-management",
        component: { render (c) { return c("router-view"); } },
        children: [{
            path: "stock-inDepotMg",
            name: "入库单列表",
            component: _import(
                "order-center/stock-management/stock-inDepotMg"
            ),
            children: [{
                path: "stock-inDepotEdit",
                name: "入库单详情",
                component: _import(
                    "order-center/stock-management/stock-inDepotMg/stock-inDepotEdit"
                ),
                meta: {
                    isSub: true
                }
            }]
        },
        {
            path: "stock-inDepotAdd",
            name: "其他入库单",
            component: _import(
                "order-center/stock-management/stock-inDepotAdd"
            )
        },
        {
            path: "stock-inventoryProfit",
            name: "盘盈入库",
            component: _import(
                "order-center/stock-management/stock-inventoryProfit"
            )
        },
        {
            path: "stock-outDepotMg",
            name: "出库单列表",
            component: _import(
                "order-center/stock-management/stock-outDepotMg"
            ),
            children: [{
                path: "stock-outDepotEdit",
                name: "查看",
                component: _import(
                    "order-center/stock-management/stock-outDepotMg/stock-outDepotEdit"
                ),
                meta: {
                    isSub: true
                }
            }]
        },
        {
            path: "stock-warehouse",
            name: "仓库",
            component: _import(
                "order-center/stock-management/stock-warehouse"
            ),
            children: [{
                path: "stock-warehouseView",
                name: "新建仓库",
                component: _import(
                    "order-center/stock-management/stock-warehouse/stock-warehouseView"
                ),
                meta: {
                    isSub: true
                }
            }]
        },
        {
            path: "stock-outDepotAdd",
            name: "其他出库单",
            component: _import(
                "order-center/stock-management/stock-outDepotAdd"
            )
        },
        {
            path: "stock-lossReporting",
            name: "报损出库",
            component: _import(
                "order-center/stock-management/stock-lossReporting"
            ),
        },
        {
            path: "stock-inventoryLosses",
            name: "盘亏出库",
            component: _import(
                "order-center/stock-management/stock-inventoryLosses"
            ),
        },
        {
            path: "stock-checkList",
            name: "盘点单列表",
            component: _import(
                "order-center/stock-management/stock-checkList"
            ),
            children: [{
                path: "stock-checkAdd",
                name: "新增盘点",
                component: _import(
                    "order-center/stock-management/stock-checkList/stock-checkAdd"
                ),
                meta: {
                    isSub: true
                }
            },
            {
                path: "stock-inventoryTaking",
                name: "盘点单",
                component: _import(
                    "order-center/stock-management/stock-checkList/stock-inventoryTaking"
                ),
                meta: {
                    isSub: true
                }
            },
            {
                path: "stock-inventoryDetails",
                name: "盘点详情",
                component: _import(
                    "order-center/stock-management/stock-checkList/stock-inventoryDetails"
                ),
                meta: {
                    isSub: true
                }
            }
            ]
        },
        {
            path: "stock-stockquery",
            name: "库存查询",
            component: _import(
                "order-center/stock-management/stock-stockquery"
            ),
        },
        {
            path: "stock-stagestock",
            name: "期初库存",
            component: _import(
                "order-center/stock-management/stock-stagestock"
            ),
        },
        {
            path: "stock-transfer",
            name: "调拨单",
            component: _import(
                "order-center/stock-management/stock-transfer"
            ),
        }
        ]
    },
    {
        path: "purchase-management",
        name: "采购管理",
        redirect: "/order-center/purchase-management",
        component: {
            render (c) {
                return c("router-view");
            }
        },
        children: [{
            path: "purchase-storeReceiptMg",
            name: "报货单",
            component: _import(
                "order-center/purchase-management/purchase-storeReceiptMg"
            ),
            children: [{
                path: "purchase-storeReceiptAdd",
                name: "新建报货单",
                component: _import(
                    "order-center/purchase-management/purchase-storeReceiptMg/purchase-storeReceiptAdd"
                ),
                meta: {
                    isSub: true
                }
            },
            {
                path: "purchase-storeReceiptEdit",
                name: "修改报货单",
                component: _import(
                    "order-center/purchase-management/purchase-storeReceiptMg/purchase-storeReceiptEdit"
                ),
                meta: {
                    isSub: true
                }
            }
            ]
        },
        {
            path: "purchase-procurement",
            name: "采购订单",
            component: _import(
                "order-center/purchase-management/purchase-procurement"
            ),
            children: [{
                path: "purchase-procurementDetail",
                name: "采购订单详情",
                component: _import(
                    "order-center/purchase-management/purchase-procurement/purchase-procurementDetail"
                ),
                meta: {
                    isSub: true
                }
            },
            {
                path: "purchase-procurementAdd",
                name: "新建采购订单",
                component: _import(
                    "order-center/purchase-management/purchase-procurement/purchase-procurementAdd"
                ),
                meta: {
                    isSub: true
                }
            }
            ]
        },
        {
            path: "purchase-receiptMg",
            name: "收货入库单",
            component: _import(
                "order-center/purchase-management/purchase-receiptMg"
            ),
            children: [{
                path: "purchase-receiptAdd",
                name: "新建收货入库单",
                component: _import(
                    "order-center/purchase-management/purchase-receiptMg/purchase-receiptAdd"
                ),
                meta: {
                    isSub: true
                }
            },
            {
                path: "purchase-receiptEdit",
                name: "查看收货入库单",
                component: _import(
                    "order-center/purchase-management/purchase-receiptMg/purchase-receiptEdit"
                ),
                meta: {
                    isSub: true
                }
            }
            ]
        },
        {
            path: "purchase-purchaseList",
            name: "退货出库单",
            component: _import(
                "order-center/purchase-management/purchase-purchaseList"
            ),
            children: [{
                path: "purchase-purchaseDetails",
                name: "退货出库单详情",
                component: _import(
                    "order-center/purchase-management/purchase-purchaseList/purchase-purchaseDetails"
                ),
                meta: {
                    isSub: true
                }
            }]
        }
        ]
    },
    {
        path: "sale-management",
        name: "销售管理",
        redirect: "/order-center/sale-management",
        component: {
            render (c) {
                return c("router-view");
            }
        },
        children: [{
            path: "sale-salesorder",
            name: "销售订单",
            component: _import(
                "order-center/sale-management/sale-salesorder"
            ),
            children: [{
                path: "sale-saleOrderAdd",
                name: "新增销售订单",
                component: _import(
                    "order-center/sale-management/sale-salesorder/sale-saleOrderAdd"
                ),
                meta: {
                    isSub: true
                }
            },
            {
                path: "sale-saleOrderLook",
                name: "查看销售订单",
                component: _import(
                    "order-center/sale-management/sale-salesorder/sale-saleOrderLook"
                ),
                meta: {
                    isSub: true
                }
            },
            {
                path: "sale-saleOrderEdit",
                name: "修改销售订单",
                component: _import(
                    "order-center/sale-management/sale-salesorder/sale-saleOrderEdit"
                ),
                meta: {
                    isSub: true
                }
            }
            ]
        },
        {
            path: "sale-invoiceList",
            name: "销售出库单",
            component: _import(
                "order-center/sale-management/sale-invoiceList"
            ),
            children: [{
                path: "sale-invoiceAdd",
                name: "新建销售出库单",
                component: _import(
                    "order-center/sale-management/sale-invoiceList/sale-invoiceAdd"
                ),
                meta: {
                    isSub: true
                }
            },
            {
                path: "sale-invoiceLook",
                name: "查看销售出库单",
                component: _import(
                    "order-center/sale-management/sale-invoiceList/sale-invoiceLook"
                ),
                meta: {
                    isSub: true
                }
            }
            ]
        },
        {
            path: "sale-deliveryOrder",
            name: "退货入库单",
            component: _import(
                "order-center/sale-management/sale-deliveryOrder"
            ),
            children: [{
                path: "sale-deliveryOrderAdd",
                name: "新增退货入库单",
                component: _import(
                    "order-center/sale-management/sale-deliveryOrder/sale-deliveryOrderAdd"
                ),
                meta: {
                    isSub: true
                }
            },
            {
                path: "sale-deliveryOrderLook",
                name: "查看退货入库单",
                component: _import(
                    "order-center/sale-management/sale-deliveryOrder/sale-deliveryOrderLook"
                ),
                meta: {
                    isSub: true
                }
            }
            ]
        }
        ]
    }
    ]
}
export default orderCenter